Skip to content

Instantly share code, notes, and snippets.

@rezich
rezich / widgets.jai
Last active February 28, 2026 22:50
Some ideas for how to structure a widget-based GUI editor system for a game, which demonstrate some advanced things you can do with the language—not all of which are necessarily advisable, but most if not all of which are hopefully educational
//
// Say you're making some kind of game that involves "Nodes" being placed around
// the game world, and you want to make an editor mode (disabled in release
// builds) that lets you create and manipulate these Nodes.
//
// Setting aside data serialization and an undo/redo system, here is a way that
// you could make such an editor system, that gives you an immediate-mode-ish
// API for easily creating editor-mode "widgets" each frame, with specific
// interaction and rendering behaviors for each different kind of "widget".
//
#!/usr/bin/env python3
# coding=utf8
#
# Simple script to scale a KiCad footprint
# Usage:
# python kicad-resize-footprint.py <input.kicad_mod> <output.kicad_mod> <scale>
#
# Where scale is how much to scale (1 = 100%)
#
# Copyright (C) 2020, Uri Shaked.
@macgregor
macgregor / heredoc.bash
Created August 19, 2018 12:59
Heredoc cheat sheet and alternatives
#!/usr/bin/env bash
# prints exactly whats in the heredoc block
cat <<EOF
This part is unindented
This part is indented
another level of indentation
EOF
# strips leading *tabs* (not spaces) from heredoc block
@mberman84
mberman84 / prompts.md
Last active February 28, 2026 22:42
Prompts

OpenClaw: Extracted Prompts (Generalized)

22 copy/paste-ready prompts for building your own AI agent system. Each prompt builds a functional system or implements a proven best practice you can hand to an AI coding assistant.

Replace placeholders like <your-workspace>, <your-messaging-platform>, and <your-model> with your own values.


1. Personal CRM

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active February 28, 2026 22:42
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@dollspace-gay
dollspace-gay / VSDD.md
Last active February 28, 2026 22:50
Verified Spec-Driven Development

Verified Spec-Driven Development (VSDD)

The Fusion: VDD × TDD × SDD for AI-Native Engineering

Overview

Verified Spec-Driven Development (VSDD) is a unified software engineering methodology that fuses three proven paradigms into a single AI-orchestrated pipeline:

  • Spec-Driven Development (SDD): Define the contract before writing a single line of implementation. Specs are the source of truth.
  • Test-Driven Development (TDD): Tests are written before code. Red → Green → Refactor. No code exists without a failing test that demanded it.
@buananetpbun
buananetpbun / Password and username ONT Modem Telkom Indihome
Last active February 28, 2026 22:35
Password and username ONT Modem Telkom Indihome
Default Password and Username For Modem ONT Telkom Indihome
username : admin
password : %0|F?H@f!berhO3e
username : telecomadmin
password : zep2kjzol
username : admin
password : Telkomdso123
@dmitry-osin
dmitry-osin / css-cheatsheet-rus.md
Created April 28, 2025 23:02
Полная шпаргалка по CSS